﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using Teigha.Core;

namespace Teigha.TD
{
	public class OdDbTableStyle : OdDbObject
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdDbTableStyle(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdDbTableStyle_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdDbTableStyle obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdDbTableStyle()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							TD_DbPINVOKE.delete_OdDbTableStyle(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public new static OdDbTableStyle cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbTableStyle_cast(OdRxObject.getCPtr(pObj));
			OdDbTableStyle result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbTableStyle)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbTableStyle)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbTableStyle)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbTableStyle_desc(), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbTableStyle_isA(this.swigCPtr), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(TD_DbPINVOKE.OdDbTableStyle_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdDbTableStyle createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = TD_DbPINVOKE.OdDbTableStyle_createObject();
			OdDbTableStyle result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdDbTableStyle)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdDbTableStyle)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdDbTableStyle)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual string getName()
		{
			string result = TD_DbPINVOKE.OdDbTableStyle_getName(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setName(string name)
		{
			TD_DbPINVOKE.OdDbTableStyle_setName(this.swigCPtr, name);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual string description()
		{
			string result = TD_DbPINVOKE.OdDbTableStyle_description(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setDescription(string description)
		{
			TD_DbPINVOKE.OdDbTableStyle_setDescription(this.swigCPtr, description);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual uint bitFlags()
		{
			uint result = TD_DbPINVOKE.OdDbTableStyle_bitFlags(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setBitFlags(uint bitFlags)
		{
			TD_DbPINVOKE.OdDbTableStyle_setBitFlags(this.swigCPtr, bitFlags);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual FlowDirection flowDirection()
		{
			FlowDirection result = (FlowDirection)TD_DbPINVOKE.OdDbTableStyle_flowDirection(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setFlowDirection(FlowDirection flowDirection)
		{
			TD_DbPINVOKE.OdDbTableStyle_setFlowDirection(this.swigCPtr, (int)flowDirection);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double horzCellMargin()
		{
			double result = TD_DbPINVOKE.OdDbTableStyle_horzCellMargin(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setHorzCellMargin(double cellMargin)
		{
			TD_DbPINVOKE.OdDbTableStyle_setHorzCellMargin(this.swigCPtr, cellMargin);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double vertCellMargin()
		{
			double result = TD_DbPINVOKE.OdDbTableStyle_vertCellMargin(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setVertCellMargin(double cellMargin)
		{
			TD_DbPINVOKE.OdDbTableStyle_setVertCellMargin(this.swigCPtr, cellMargin);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool isTitleSuppressed()
		{
			bool result = TD_DbPINVOKE.OdDbTableStyle_isTitleSuppressed(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void suppressTitleRow(bool suppress)
		{
			TD_DbPINVOKE.OdDbTableStyle_suppressTitleRow(this.swigCPtr, suppress);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool isHeaderSuppressed()
		{
			bool result = TD_DbPINVOKE.OdDbTableStyle_isHeaderSuppressed(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void suppressHeaderRow(bool suppress)
		{
			TD_DbPINVOKE.OdDbTableStyle_suppressHeaderRow(this.swigCPtr, suppress);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdDbObjectId textStyle(RowType rowType)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.OdDbTableStyle_textStyle__SWIG_0(this.swigCPtr, (int)rowType);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdDbObjectId textStyle()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.OdDbTableStyle_textStyle__SWIG_1(this.swigCPtr);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setTextStyle(OdDbObjectId textStyleId, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setTextStyle__SWIG_0(this.swigCPtr, OdDbObjectId.getCPtr(textStyleId), rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setTextStyle(OdDbObjectId textStyleId)
		{
			TD_DbPINVOKE.OdDbTableStyle_setTextStyle__SWIG_1(this.swigCPtr, OdDbObjectId.getCPtr(textStyleId));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual double textHeight(RowType rowType)
		{
			double result = TD_DbPINVOKE.OdDbTableStyle_textHeight__SWIG_0(this.swigCPtr, (int)rowType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual double textHeight()
		{
			double result = TD_DbPINVOKE.OdDbTableStyle_textHeight__SWIG_1(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setTextHeight(double height, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setTextHeight__SWIG_0(this.swigCPtr, height, rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setTextHeight(double height)
		{
			TD_DbPINVOKE.OdDbTableStyle_setTextHeight__SWIG_1(this.swigCPtr, height);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual CellAlignment alignment(RowType rowType)
		{
			CellAlignment result = (CellAlignment)TD_DbPINVOKE.OdDbTableStyle_alignment__SWIG_0(this.swigCPtr, (int)rowType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual CellAlignment alignment()
		{
			CellAlignment result = (CellAlignment)TD_DbPINVOKE.OdDbTableStyle_alignment__SWIG_1(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setAlignment(CellAlignment alignment, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setAlignment__SWIG_0(this.swigCPtr, (int)alignment, rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setAlignment(CellAlignment alignment)
		{
			TD_DbPINVOKE.OdDbTableStyle_setAlignment__SWIG_1(this.swigCPtr, (int)alignment);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdCmColor color(RowType rowType)
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_color__SWIG_0(this.swigCPtr, (int)rowType), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdCmColor color()
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_color__SWIG_1(this.swigCPtr), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setColor(OdCmColor color, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setColor__SWIG_0(this.swigCPtr, OdCmColor.getCPtr(color), rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setColor(OdCmColor color)
		{
			TD_DbPINVOKE.OdDbTableStyle_setColor__SWIG_1(this.swigCPtr, OdCmColor.getCPtr(color));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdCmColor backgroundColor(RowType rowType)
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_backgroundColor__SWIG_0(this.swigCPtr, (int)rowType), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdCmColor backgroundColor()
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_backgroundColor__SWIG_1(this.swigCPtr), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setBackgroundColor(OdCmColor color, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setBackgroundColor__SWIG_0(this.swigCPtr, OdCmColor.getCPtr(color), rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setBackgroundColor(OdCmColor color)
		{
			TD_DbPINVOKE.OdDbTableStyle_setBackgroundColor__SWIG_1(this.swigCPtr, OdCmColor.getCPtr(color));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool isBackgroundColorNone(RowType rowType)
		{
			bool result = TD_DbPINVOKE.OdDbTableStyle_isBackgroundColorNone__SWIG_0(this.swigCPtr, (int)rowType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isBackgroundColorNone()
		{
			bool result = TD_DbPINVOKE.OdDbTableStyle_isBackgroundColorNone__SWIG_1(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setBackgroundColorNone(bool disable, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setBackgroundColorNone__SWIG_0(this.swigCPtr, disable, rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setBackgroundColorNone(bool disable)
		{
			TD_DbPINVOKE.OdDbTableStyle_setBackgroundColorNone__SWIG_1(this.swigCPtr, disable);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual LineWeight gridLineWeight(GridLineType gridlineType, RowType rowType)
		{
			LineWeight result = (LineWeight)TD_DbPINVOKE.OdDbTableStyle_gridLineWeight__SWIG_0(this.swigCPtr, (int)gridlineType, (int)rowType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual LineWeight gridLineWeight(GridLineType gridlineType)
		{
			LineWeight result = (LineWeight)TD_DbPINVOKE.OdDbTableStyle_gridLineWeight__SWIG_1(this.swigCPtr, (int)gridlineType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGridLineWeight(LineWeight lineWeight, int gridlineTypes, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridLineWeight__SWIG_0(this.swigCPtr, (int)lineWeight, gridlineTypes, rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setGridLineWeight(LineWeight lineWeight, int gridlineTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridLineWeight__SWIG_1(this.swigCPtr, (int)lineWeight, gridlineTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setGridLineWeight(LineWeight lineWeight)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridLineWeight__SWIG_2(this.swigCPtr, (int)lineWeight);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdCmColor gridColor(GridLineType gridlineType, RowType rowType)
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_gridColor__SWIG_0(this.swigCPtr, (int)gridlineType, (int)rowType), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdCmColor gridColor(GridLineType gridlineType)
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_gridColor__SWIG_1(this.swigCPtr, (int)gridlineType), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGridColor(OdCmColor color, int gridlineTypes, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridColor__SWIG_0(this.swigCPtr, OdCmColor.getCPtr(color), gridlineTypes, rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setGridColor(OdCmColor color, int gridlineTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridColor__SWIG_1(this.swigCPtr, OdCmColor.getCPtr(color), gridlineTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setGridColor(OdCmColor color)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridColor__SWIG_2(this.swigCPtr, OdCmColor.getCPtr(color));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual Visibility gridVisibility(GridLineType gridlineType, RowType rowType)
		{
			Visibility result = (Visibility)TD_DbPINVOKE.OdDbTableStyle_gridVisibility__SWIG_0(this.swigCPtr, (int)gridlineType, (int)rowType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual Visibility gridVisibility(GridLineType gridlineType)
		{
			Visibility result = (Visibility)TD_DbPINVOKE.OdDbTableStyle_gridVisibility__SWIG_1(this.swigCPtr, (int)gridlineType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setGridVisibility(Visibility gridVisiblity, int gridlineTypes, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridVisibility__SWIG_0(this.swigCPtr, (int)gridVisiblity, gridlineTypes, rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setGridVisibility(Visibility gridVisiblity, int gridlineTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridVisibility__SWIG_1(this.swigCPtr, (int)gridVisiblity, gridlineTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setGridVisibility(Visibility gridVisiblity)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridVisibility__SWIG_2(this.swigCPtr, (int)gridVisiblity);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void getDataType(out OdValue.DataType nDataType, out OdValue.UnitType nUnitType, RowType rowType)
		{
			TD_DbPINVOKE.OdDbTableStyle_getDataType__SWIG_0(this.swigCPtr, out nDataType, out nUnitType, (int)rowType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void getDataType(out OdValue.DataType nDataType, out OdValue.UnitType nUnitType)
		{
			TD_DbPINVOKE.OdDbTableStyle_getDataType__SWIG_1(this.swigCPtr, out nDataType, out nUnitType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setDataType(OdValue.DataType nDataType, OdValue.UnitType nUnitType, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setDataType__SWIG_0(this.swigCPtr, (int)nDataType, (int)nUnitType, rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setDataType(OdValue.DataType nDataType, OdValue.UnitType nUnitType)
		{
			TD_DbPINVOKE.OdDbTableStyle_setDataType__SWIG_1(this.swigCPtr, (int)nDataType, (int)nUnitType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual string format(RowType rowType)
		{
			string result = TD_DbPINVOKE.OdDbTableStyle_format__SWIG_0(this.swigCPtr, (int)rowType);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual string format()
		{
			string result = TD_DbPINVOKE.OdDbTableStyle_format__SWIG_1(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setFormat(string pszFormat, int rowTypes)
		{
			TD_DbPINVOKE.OdDbTableStyle_setFormat__SWIG_0(this.swigCPtr, pszFormat, rowTypes);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setFormat(string pszFormat)
		{
			TD_DbPINVOKE.OdDbTableStyle_setFormat__SWIG_1(this.swigCPtr, pszFormat);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual OdResult dwgInFields(OdDbDwgFiler pFiler)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbTableStyle_dwgInFields(this.swigCPtr, OdDbDwgFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void dwgOutFields(OdDbDwgFiler pFiler)
		{
			TD_DbPINVOKE.OdDbTableStyle_dwgOutFields(this.swigCPtr, OdDbDwgFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual OdResult dxfInFields(OdDbDxfFiler pFiler)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbTableStyle_dxfInFields(this.swigCPtr, OdDbDxfFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void dxfOutFields(OdDbDxfFiler pFiler)
		{
			TD_DbPINVOKE.OdDbTableStyle_dxfOutFields(this.swigCPtr, OdDbDxfFiler.getCPtr(pFiler));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void setDatabaseDefaults(OdDbDatabase pDb)
		{
			TD_DbPINVOKE.OdDbTableStyle_setDatabaseDefaults__SWIG_0(this.swigCPtr, OdDbDatabase.getCPtr(pDb));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void setDatabaseDefaults()
		{
			TD_DbPINVOKE.OdDbTableStyle_setDatabaseDefaults__SWIG_1(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdDbObjectId postTableStyleToDb(OdDbDatabase pDb, string styleName)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.OdDbTableStyle_postTableStyleToDb(this.swigCPtr, OdDbDatabase.getCPtr(pDb), styleName);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public string createCellStyle()
		{
			string result = TD_DbPINVOKE.OdDbTableStyle_createCellStyle__SWIG_0(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void createCellStyle(string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_createCellStyle__SWIG_1(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void createCellStyle(string cellStyle, string fromCellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_createCellStyle__SWIG_2(this.swigCPtr, cellStyle, fromCellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void renameCellStyle(string oldName, string newName)
		{
			TD_DbPINVOKE.OdDbTableStyle_renameCellStyle(this.swigCPtr, oldName, newName);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void deleteCellStyle(string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_deleteCellStyle(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void copyCellStyle(string srcCellStyle, string targetCellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_copyCellStyle__SWIG_0(this.swigCPtr, srcCellStyle, targetCellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void copyCellStyle(OdDbTableStyle pSrc, string srcCellStyle, string targetCellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_copyCellStyle__SWIG_1(this.swigCPtr, OdDbTableStyle.getCPtr(pSrc), srcCellStyle, targetCellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void getUniqueCellStyleName(string baseName, ref string sUniqueName)
		{
			IntPtr intPtr = Marshal.StringToCoTaskMemUni(sUniqueName);
			IntPtr value = intPtr;
			try
			{
				TD_DbPINVOKE.OdDbTableStyle_getUniqueCellStyleName(this.swigCPtr, baseName, ref intPtr);
				if (TD_DbPINVOKE.SWIGPendingException.Pending)
				{
					throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
				}
			}
			finally
			{
				if (intPtr != value)
				{
					sUniqueName = Marshal.PtrToStringUni(intPtr);
				}
			}
		}

		public bool isCellStyleInUse(string cellStyle)
		{
			bool result = TD_DbPINVOKE.OdDbTableStyle_isCellStyleInUse(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public int numCellStyles()
		{
			int result = TD_DbPINVOKE.OdDbTableStyle_numCellStyles(this.swigCPtr);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public int getCellStyles(OdStringArray cellstyles)
		{
			int result = TD_DbPINVOKE.OdDbTableStyle_getCellStyles(this.swigCPtr, OdStringArray.getCPtr(cellstyles));
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public int cellStyleId(string cellStyle)
		{
			int result = TD_DbPINVOKE.OdDbTableStyle_cellStyleId(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public string cellStyleName(int cellStyle)
		{
			string result = TD_DbPINVOKE.OdDbTableStyle_cellStyleName(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdDbObjectId textStyle(string cellStyle)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.OdDbTableStyle_textStyle__SWIG_2(this.swigCPtr, cellStyle);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setTextStyle(OdDbObjectId id, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setTextStyle__SWIG_2(this.swigCPtr, OdDbObjectId.getCPtr(id), cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double textHeight(string cellStyle)
		{
			double result = TD_DbPINVOKE.OdDbTableStyle_textHeight__SWIG_2(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setTextHeight(double dHeight, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setTextHeight__SWIG_2(this.swigCPtr, dHeight, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public CellAlignment alignment(string cellStyle)
		{
			CellAlignment result = (CellAlignment)TD_DbPINVOKE.OdDbTableStyle_alignment__SWIG_2(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setAlignment(CellAlignment alignment, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setAlignment__SWIG_2(this.swigCPtr, (int)alignment, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdCmColor color(string cellStyle)
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_color__SWIG_2(this.swigCPtr, cellStyle), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setColor(OdCmColor color, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setColor__SWIG_2(this.swigCPtr, OdCmColor.getCPtr(color), cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdCmColor backgroundColor(string cellStyle)
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_backgroundColor__SWIG_2(this.swigCPtr, cellStyle), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setBackgroundColor(OdCmColor color, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setBackgroundColor__SWIG_2(this.swigCPtr, OdCmColor.getCPtr(color), cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void getDataType(out OdValue.DataType nDataType, out OdValue.UnitType nUnitType, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_getDataType__SWIG_2(this.swigCPtr, out nDataType, out nUnitType, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void setDataType(OdValue.DataType nDataType, OdValue.UnitType nUnitType, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setDataType__SWIG_2(this.swigCPtr, (int)nDataType, (int)nUnitType, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public string format(string cellStyle)
		{
			string result = TD_DbPINVOKE.OdDbTableStyle_format__SWIG_2(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setFormat(string format, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setFormat__SWIG_2(this.swigCPtr, format, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public int cellClass(string cellStyle)
		{
			int result = TD_DbPINVOKE.OdDbTableStyle_cellClass(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setCellClass(int nClass, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setCellClass(this.swigCPtr, nClass, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double rotation(string cellStyle)
		{
			double result = TD_DbPINVOKE.OdDbTableStyle_rotation(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setRotation(double rotation, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setRotation(this.swigCPtr, rotation, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isMergeAllEnabled(string cellStyle)
		{
			bool result = TD_DbPINVOKE.OdDbTableStyle_isMergeAllEnabled(this.swigCPtr, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void enableMergeAll(bool bEnable, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_enableMergeAll(this.swigCPtr, bEnable, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double margin(CellMargin nMargin, string cellStyle)
		{
			double result = TD_DbPINVOKE.OdDbTableStyle_margin(this.swigCPtr, (int)nMargin, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setMargin(CellMargin nMargins, double fMargin, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setMargin(this.swigCPtr, (int)nMargins, fMargin, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public LineWeight gridLineWeight(GridLineType gridLineType, string cellStyle)
		{
			LineWeight result = (LineWeight)TD_DbPINVOKE.OdDbTableStyle_gridLineWeight__SWIG_2(this.swigCPtr, (int)gridLineType, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setGridLineWeight(LineWeight lineWeight, GridLineType gridLineTypes, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridLineWeight__SWIG_3(this.swigCPtr, (int)lineWeight, (int)gridLineTypes, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdCmColor gridColor(GridLineType gridLineType, string cellStyle)
		{
			OdCmColor result = new OdCmColor(TD_DbPINVOKE.OdDbTableStyle_gridColor__SWIG_2(this.swigCPtr, (int)gridLineType, cellStyle), true);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setGridColor(OdCmColor color, GridLineType gridLineTypes, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridColor__SWIG_3(this.swigCPtr, OdCmColor.getCPtr(color), (int)gridLineTypes, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public Visibility gridVisibility(GridLineType gridLineType, string cellStyle)
		{
			Visibility result = (Visibility)TD_DbPINVOKE.OdDbTableStyle_gridVisibility__SWIG_2(this.swigCPtr, (int)gridLineType, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setGridVisibility(Visibility visible, GridLineType gridLineTypes, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridVisibility__SWIG_3(this.swigCPtr, (int)visible, (int)gridLineTypes, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public double gridDoubleLineSpacing(GridLineType gridLineType, string cellStyle)
		{
			double result = TD_DbPINVOKE.OdDbTableStyle_gridDoubleLineSpacing(this.swigCPtr, (int)gridLineType, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setGridDoubleLineSpacing(double fSpacing, GridLineType gridLineTypes, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridDoubleLineSpacing(this.swigCPtr, fSpacing, (int)gridLineTypes, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public GridLineStyle gridLineStyle(GridLineType gridLineType, string cellStyle)
		{
			GridLineStyle result = (GridLineStyle)TD_DbPINVOKE.OdDbTableStyle_gridLineStyle(this.swigCPtr, (int)gridLineType, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setGridLineStyle(GridLineStyle nLineStyle, GridLineType gridLineTypes, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridLineStyle(this.swigCPtr, (int)nLineStyle, (int)gridLineTypes, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdDbObjectId gridLinetype(GridLineType gridLineType, string cellStyle)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr cPtr = TD_DbPINVOKE.OdDbTableStyle_gridLinetype(this.swigCPtr, (int)gridLineType, cellStyle);
			OdDbObjectId result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(new OdDbObjectId(cPtr, true));
				result = new OdDbObjectId(cPtr, false);
			}
			else
			{
				result = new OdDbObjectId(cPtr, true);
			}
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void setGridLinetype(OdDbObjectId id, GridLineType gridLineTypes, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridLinetype(this.swigCPtr, OdDbObjectId.getCPtr(id), (int)gridLineTypes, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void getGridProperty(OdGridProperty gridProp, GridLineType nGridLineTypes, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_getGridProperty(this.swigCPtr, OdGridProperty.getCPtr(gridProp), (int)nGridLineTypes, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void setGridProperty(OdGridProperty gridProp, GridLineType nGridLineTypes, string cellStyle)
		{
			TD_DbPINVOKE.OdDbTableStyle_setGridProperty(this.swigCPtr, OdGridProperty.getCPtr(gridProp), (int)nGridLineTypes, cellStyle);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdResult subGetClassID(IntPtr pClsid)
		{
			OdResult result = (OdResult)TD_DbPINVOKE.OdDbTableStyle_subGetClassID(this.swigCPtr, pClsid);
			if (TD_DbPINVOKE.SWIGPendingException.Pending)
			{
				throw TD_DbPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private object locker = new object();

		private HandleRef swigCPtr;
	}
}
